﻿using Autohome.Login.Models;
using Orchard.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Autohome.Login.Service
{
    public class LoginInfoService:ILoginInfoService
    {
        public IRepository<LoginInfo> _loginInfoRepository;

        public LoginInfoService(IRepository<LoginInfo> loginInfoRepository)
        {
            _loginInfoRepository = loginInfoRepository;
        }

        public virtual bool Create(Models.LoginInfo item)
        {
            try
            {
                _loginInfoRepository.Create(item);
            }
            catch
            {
                return false;
            }
            return true;
        }
    }
}